var loginArea = document.getElementsByClassName('login-area')[0],
  loginBtn = document.getElementsByClassName('login')[0],
  loginClose = document.getElementsByClassName('close')[0]

loginBtn.onclick = function () {
  loginArea.style.display = 'block'
}

loginClose.onclick = function () {
  loginArea.style.display = 'none'
  return false
}